package com.wwj.airline.Dao;
import com.wwj.airline.pojo.Flight;
import java.util.List;

public interface FlightRepository {
    public List<Flight> findAll();//查全部
    public Flight findById(Long id);//用id查
    public List<Flight> findByFromCity(String fromCity);//用出发地查
    public List<Flight> findByToCity(String toCity);//用目的地查
    public List<Flight> findByFTCity(String fCity, String tCity);//用出发地和目的地查
    public List<Flight> findByFromTime(String fromTime);//用出发时间查
    public void save(Flight flight);//增
    public void update(Flight flight);//改
    public void deleteById(Long id);//删
}
